import { defHttp } from '@/utils/http/axios';

enum Api {
  REFRESHTOKEN_URL = '/Login/refresh',
  USERINFO_URL = '/Users/Info',
}
// 刷新Token
export const refreshToken = (RefreshToken) => {
  return defHttp.post({
    url: Api.REFRESHTOKEN_URL,
    headers: {
      RefreshToken,
    },
  });
};
// 用户信息
export const userinfo = () => {
  return defHttp.get({
    url: Api.USERINFO_URL,
  });
};
